home *** CD-ROM | disk | FTP | other *** search
- *** /tmp/,RCSt1a27484 Thu Aug 24 00:04:09 1989
- --- signal.c Mon Aug 14 23:25:25 1989
- ***************
- *** 104,111 ****
- int i, j, proc_id, proc_nr, id;
- unshort sig_map; /* bits 0 - 15 for sigs 1 - 16 */
-
- ! /* Only kernel and FS may make this call. */
- ! if (who != HARDWARE && who != FS_PROC_NR) return(EPERM);
-
- proc_nr = mm_in.PROC1;
- rmp = &mproc[proc_nr];
- --- 104,112 ----
- int i, j, proc_id, proc_nr, id;
- unshort sig_map; /* bits 0 - 15 for sigs 1 - 16 */
-
- ! /* Only kernel may make this call. */
- ! if (who != HARDWARE) return(EPERM);
- ! dont_reply = TRUE; /* don't reply to the kernel */
-
- proc_nr = mm_in.PROC1;
- rmp = &mproc[proc_nr];
- ***************
- *** 130,136 ****
- if ( (sig_map >> i) & 1) check_sig(id, j, SUPER_USER);
- }
-
- - dont_reply = TRUE; /* don't reply to the kernel */
- return(OK);
- }
-
- --- 131,136 ----
- ***************
- *** 178,191 ****
- * can arrive just as the timer is being turned off. Also, turn off
- * ALARM_ON bit when timer goes off to keep it accurate.
- */
- if (sig_nr == SIGALRM) {
- if ( (rmp->mp_flags & ALARM_ON) == 0) continue;
- ! if (send_sig) rmp->mp_flags &= ~ALARM_ON;
- }
- -
- - if (send_sig == FALSE) continue;
- count++;
- - if (rmp->mp_ignore & mask) continue;
-
- #ifdef AM_KERNEL
- /* see if an amoeba transaction should be signalled */
- --- 178,194 ----
- * can arrive just as the timer is being turned off. Also, turn off
- * ALARM_ON bit when timer goes off to keep it accurate.
- */
- + /* bug fix as per:
- + Date: Thu, 15 Dec 88 09:28:03 GMT
- + From: Chip Roberson <csrobe@CS.WM.EDU>
- + Subject: sleep() [SIGALRM] bug in 1.2
- + */
- + if (send_sig == FALSE || rmp->mp_ignore & mask) continue;
- if (sig_nr == SIGALRM) {
- if ( (rmp->mp_flags & ALARM_ON) == 0) continue;
- ! rmp->mp_flags &= ~ALARM_ON;
- }
- count++;
-
- #ifdef AM_KERNEL
- /* see if an amoeba transaction should be signalled */
-